<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>

    <title>wtsn</title>
    @livewireStyles
</head>
<body>
<nav class="navbar bg-light">
    <div class="container-fluid col-8">
        <span class="navbar-brand mb-0 h1"><a href="{{ route('welcome-page') }}" class="text-decoration-none text-black">WTSN</a></span>
        <div class="d-flex">
            @if(Auth::check())
                <a href="{{ route('team-list') }}" class="link-primary mx-2">Мои команды</a>
                <a href="{{ route('domain-list') }}" class="link-primary mx-2">Домены</a>
                <a href="{{ route('user-profile', ['userName' => Auth::user()->user_name ]) }}"> {{Auth::user()->user_name }} </a>
                <a href="{{ route('logout') }}" class="link-primary mx-2">Выйти</a>
            @endif
        </div>
    </div>
</nav>
{{ $slot }}

@livewireScripts
</body>
</html>
